package com.xjh.him.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.xjh.tool.BaseDO;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjh
 * @since 2021-10-09
 */
@Data
@TableName("user_group_msg")
public class UserGroupMsgDO extends BaseDO {
    public static final String MSG_TYPE_TEXT = "text";
    public static final String MSG_TYPE_IMAGE = "image";

    @TableId(value = "id", type = IdType.AUTO)
    private Long	id;

    /**
     * <pre>
     * 用户群id
     * </pre>
     */
    private Long	userGroupId;

    /**
     * <pre>
     * 用户id
     * </pre>
     */
    private Long	userId;

    /**
     * <pre>
     * 消息类型。文本-txt，图片-img
     * </pre>
     */
    private String	msgType;

    /**
     * <pre>
     * 消息内容
     * </pre>
     */
    private String	msgContent;

    /**
     * <pre>
     * 消息内容链接
     * </pre>
     */
    private String	msgContentUrl;

    /**
     * <pre>
     *
     * </pre>
     */
    private Date createTime;

}
